<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>MyLayer</title>
    <link href="../Static/layui/css/layui.css" rel="stylesheet">
</head>
<body>
    <button onclick="clickMe()">点我</button>
    <script src="mylayer.js"></script>
    <script src="../Static/layui/layui.js"></script>
    <script>
        function clickMe() {
            //mylayer.alert("确认要删除吗？")
            //mylayer.confirm("确认要删除吗？", "http://www.baidu.com")
            //mylayer.okMsg("删除成功")
            //mylayer.errorMsg("删除失败")
            mylayer.okUrl("删除成功", "http://www.baidu.com")
        }
    </script>
</body>
</html>